/**
 * @description 查看电子书章节
 * @author 满多多
 * @date 2024-08-24
 * @param id 书籍id
 * */

export function useBookMenusApi(id) {
    return useHttpGet("bookMenus", `/book/menus?id=${id}`, {
        lazy: true
    })
}


/**
 * @description 查看电子书章节内容
 * @author 满多多
 * @date 2024-08-24
 * @param book_id 电子书ID
 * @param id 电子书章节ID
 * */

export function useBookDetailApi(id, book_id) {
    return useHttpGet("bookDetail", `/book/detail?book_id=${book_id}&id=${id}`, {
        lazy: true
    })
}